﻿using System.Linq.Expressions;

namespace BaseData.Infrastructrue.Interfaces
{
    public interface IBasepository<T> where T : class
    {
        IQueryable<T> GetAll();
        Task<T> GetModel(Expression<Func<T, bool>> expression);
        Task<int> InsertAsync(T entity);
        Task<int> EditAsync(T entity);
        Task<int> DeleteAsync(T entity);
    }
}
